<template>
	 <div class='footer'>
         <el-row>
            <el-col :span="10" class="banquan">
                <span class="sp"></span>
            </el-col>
            <el-col :span="10">
                <!-- <el-col :span="4"><span>CHNT007521</span></el-col>
                <el-col :span="4"><span>罗丽骊</span></el-col> -->
                <el-col :span="6"><span>{{companyName}}</span></el-col>
                <el-col :span="8"><span>{{orgName}}</span></el-col>
                 <el-col :span="9">{{time}}</el-col>
                <!-- <el-col :span="6"><span>129.232.9.222</span></el-col> -->
            </el-col>
         </el-row>

        <!-- <p class="intro rflex">
            <span>Admin</span>
            <a :href='github' target="_blank">
               <icon-svg icon-class="iconGithub" />
            </a>
            <span>wdlhao2013</span>
        </p> -->
        <!-- <p class="beian">鄂ICP备18001612号</p> -->
    </div>
</template>


<script>
    // import { github } from "@/utils/env";

export default {
    // name: "footerNav",
	data(){
		return {
            companyName:"",
            orgName:"",
            time:"",
            timeInterval:null
		}
	},
    mounted() {
        this.timeInterval=setInterval(this.getTime,1000);
        //this.getTime();
        let userInfo = JSON.parse(sessionStorage.getItem("userInfo"));
        this.companyName = userInfo?userInfo.corpname:'';
        this.orgName = userInfo?userInfo.orgnizationname:'';
    },
    beforeDestroy(){
        clearInterval(this.timeInterval)
    },
    methods:{
        getTime() {
            var vWeek, vWeek_s;
            vWeek = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
            var date = new Date();
            let year = date.getFullYear();
            let month = date.getMonth() + 1;
            let day = date.getDate();
            let hours = date.getHours();
            let minutes = date.getMinutes();
            let seconds = date.getSeconds();
            if(Number(seconds)<10){
                seconds = 0+''+seconds
            }
            vWeek_s = date.getDay();
            this.time = year + "年" + month + "月" + day + "日"  + hours + ":" + minutes + ":" + seconds  + vWeek[vWeek_s];
        },

	}
}
</script>

<style lang="less">
	.footer{
        width: 100%;
        padding: 10px 0;
        font-size:12px;
        text-align: center;
        background: #fff;
        position: fixed;
        bottom: 0;
        border-top: 1px solid #e1e1e1;
        z-index: 1000;
        color: #999;
        .banquan{text-align: right; padding-right: 20px;}
    }
</style>


